home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / vidhrdw / avalnche.c < prev    next >
C/C++ Source or Header  |  2000-04-04  |  545b  |  32 lines

  1. #include "driver.h"
  2. #include "vidhrdw/generic.h"
  3.  
  4.  
  5. WRITE_HANDLER( avalnche_videoram_w )
  6. {
  7.     videoram[offset] = data;
  8.  
  9.     if (offset >= 0x200)
  10.     {
  11.         int x,y,i;
  12.  
  13.         x = 8 * (offset % 32);
  14.         y = offset / 32;
  15.  
  16.         for (i = 0;i < 8;i++)
  17.             plot_pixel(Machine->scrbitmap,x+7-i,y,Machine->pens[(data >> i) & 1]);
  18.     }
  19. }
  20.  
  21. void avalnche_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh)
  22. {
  23.     if (full_refresh)
  24.     {
  25.         int offs;
  26.  
  27.  
  28.         for (offs = 0;offs < videoram_size; offs++)
  29.             avalnche_videoram_w(offs,videoram[offs]);
  30.     }
  31. }
  32.